﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{
    public class MenuMap : ClassMap<Menu>
    {
        public MenuMap()
        {
            Table("Tbt_SitMap");
            LazyLoad();
            Id(x => x.SID).GeneratedBy.Assigned().Column("SID");
            Map(x => x.URL).Column("URL");
            Map(x => x.Title).Column("Title");
            Map(x => x.Description).Column("Description");
            Map(x => x.NodeID).Column("NodeID");
            Map(x => x.PNodeID).Column("PNodeID");
            Map(x => x.ImageUrl).Column("ImageUrl");
        }
    }
}
